﻿if (typeof jQuery == 'undefined') {
    document.write("<" + "script src=\"/_layouts/webcoda.rssrotator/jquery-1.3.2.min.js\" type=\"text/javascript\"></" + "script>");
}
document.write("<" + "script src=\"/_layouts/webcoda.rssrotator/jquery.cycle.all.min.js\" type=\"text/javascript\"></" + "script>");

function WCCycleRssFeed(RssFeedID, initialDelayTime, transitionTime, transitionSpeed, event) {
    try {
        var RssFeed = "#" + RssFeedID;

        $(RssFeed).cycle({
            fx: event,
            delay: initialDelayTime,
            timeout: transitionTime,
            speed: transitionSpeed,
            fit: 0,
            height: 'auto',
            pause: 1
        });
    } catch (err) {
        alert('Error with jQuery Cycle plugin.');
        return false;
    }
}
